From: Paul Eggert Date: Mon, 24 Oct 2011 02:40:23 +0000 (-0700) Subject: * configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852) X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~2917^2~162^2~18 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e782cfabe70f10d62c0a1eb6f1eeed74a86d6c2d;p=emacs.git * configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852) if the library is found. Otherwise, later configure-time tests, such as the test for pthread_sigmask, generate the wrong results on some platforms. Problem reported for FreeBSD by Nali Toja. --- diff --git a/ChangeLog b/ChangeLog index 9b9a7176b05..ade71ae09a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-10-24 Paul Eggert + + * configure.in (LIB_PTHREAD): Prepend -lpthread to LIBS (Bug#9852) + if the library is found. Otherwise, later configure-time tests, + such as the test for pthread_sigmask, generate the wrong results + on some platforms. Problem reported for FreeBSD by Nali Toja. + 2011-10-20 Paul Eggert Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794) diff --git a/configure.in b/configure.in index 5b32e10853f..3040c13e683 100644 --- a/configure.in +++ b/configure.in @@ -1723,7 +1723,8 @@ fi if test "$HAVE_PTHREAD" = yes; then case "${canonical}" in *-hpux*) ;; - *) LIB_PTHREAD="-lpthread" ;; + *) LIB_PTHREAD="-lpthread" + LIBS="$LIB_PTHREAD $LIBS" ;; esac AC_DEFINE(HAVE_PTHREAD, 1, [Define to 1 if you have pthread (-lpthread).]) fi